package com.jianhua.appmarket.module.service.system;

import com.jianhua.appmarket.common.base.BaseService;
import com.jianhua.appmarket.module.entity.system.Role;
import com.jianhua.appmarket.module.entity.system.User;
import com.jianhua.appmarket.module.model.system.RoleVO;
import com.jianhua.appmarket.module.model.system.UserVO;

import java.util.List;

public interface IRoleService extends BaseService<Role> {

    List<RoleVO> listRolesByOrgId(Long orgId);

    Boolean addOrEditRole(Role role, UserVO user);

    Boolean editRole(Role role, User user);

    Boolean deleteRole(Long roleId);
}
